import {http} from "@/utils/http";
import type {Member} from "@/types/member";
// 登录
type Login = {
  code: string,
  encryptedData: string,
  iv: string
}
// 小程序登录
export const loginWxMinApi = (data: Login) => {
  return http({
    method: 'POST',
    url: '/login/wxMin',
    data
  })
}
//小程序登录-内测版
export const loginWxMinSimpleApi=(phoneNumber:string)=>{
  return http<Member>({
    method:'POST',
    url:'/login/wxMin/simple',
    data:{phoneNumber}
  })
}
